<?php

require_once(t3lib_extMgm::extPath('zlib') . 'class.tx_zlib_model.php');

class tx_zboard_topic extends tx_zlib_model
{

    /**
     * @return string
     */
    public function getAuthor()
    {
        return empty($this->author) ? 'Unbekannter Benutzer' : $this->author ;
    }

    /**
     * @return string
     */
    public function getLastPostAuthor()
    {
        return empty($this->last_post_author) ? 'Unbekannter Benutzer' : $this->last_post_author ;
    }

}

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_topic.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_topic.php']);
}
